<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/3/9
  Time: 13:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page isELIgnored="false"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>登录页面</h1>
<form action="/medical/user/login.action" method="post">
    username: <input type="text" name="username" />
    password：<input type="password" name="password" />
    <input type="submit" value="提交" />
</form>
<br>
<h1>测试路径问题</h1>
JSP之项目路径问题（${pageContext.request.contextPath}
<br>

<%=basePath%>以及绝对路径获取）
</body>
</html>
